from django.contrib import admin
from books.models import Publisher, Author, Book


class BookAdmin(admin.ModelAdmin):
    list_display = ('id', 'title', 'authors_list', 'publisher')
    fields = ('title', 'authors', 'publication_date', 'publisher')

admin.site.register(Publisher)
admin.site.register(Author)
admin.site.register(Book, BookAdmin)
